package com.dd.dao;

import com.dd.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface StudentDao {

    //获取所有用户信息
    public List<Student> selectAll();

    public void addStudent(Student student);

    public void upDatedStudent(@Param("id") int id,
                               @Param("name") String name,
                               @Param("birthday") Date birthday,
                               @Param("sex") String sex,
                               @Param("address") String address,
                               @Param("school") String school);

    public void deleteStudent(int id);

}
